package com.cw.japp

class Room {

	String name
	Boolean allowRecording
	Long externalRoomId
	String externalRoomType
	String roomType
	Integer status
	Date lastModifiedDate
	Date createdDate

	static hasMany = [clients: Client,
	                  recordings: Recording]

	static mapping = {
		id column: "room_id"
		version false
	}

	static constraints = {
		name nullable: true
		allowRecording nullable: true
		externalRoomId nullable: true
		externalRoomType nullable: true
		roomType nullable: true
		status nullable: true
		lastModifiedDate nullable: true
		createdDate nullable: true
	}
}
